package com.yet.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.springframework.context.annotation.Import;

import com.yet.config.RpcBeanDefinitionRegistrar;
import com.yet.proxy.JdkProxy;
import com.yet.proxy.YetProxy;
import com.yet.serialization.HessianSerialization;
import com.yet.serialization.Serialization;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(RpcBeanDefinitionRegistrar.class)
public @interface EnableRpc {
	
	Class<? extends Serialization> serializationClass() default HessianSerialization.class; 

	Class<? extends YetProxy> yetProxyClass() default JdkProxy.class;

}
